package pers.karl.design.decorator;

public class DecoratorDemo {

    public static void main(String[] args) {

        // 被装饰器
        DoService doService = new DoServiceImpl();

        // 增加装饰器
        doService = new TimerDecorator(doService);

        // 执行
        doService.doSomething();
    }

}
